package edu.zzuli.common.security;

import org.acegisecurity.AuthenticationException;

public class CustomAuthenticationException extends AuthenticationException {

	private static final long serialVersionUID = 847583492960256668L;

	public final static int CODE_JYM = 1;

	public final static int CODE_CA = 2;

	private int excCode;
	
	private Integer errtype;

	public CustomAuthenticationException(String msg, int excCode) {
		super(msg);
		this.excCode = excCode;
	}
	
	public CustomAuthenticationException(String msg, int excCode,Integer errtype) {
		this(msg,excCode);
		this.errtype = errtype;
	}

	public int getExcCode() {
		return excCode;
	}

	public Integer getErrtype() {
		return errtype;
	}
	
}
